/*
 * @Description: 积分充值接口
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { IntegralRecharge } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分充值列表
 */
export const GetIntegralRechargeList = ( params: IntegralRecharge ) => {
    return post( "/integral-service/integral/integralrecharge/list", params )
}
/**
 * 获取积分充值详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralRecharge = ( pkAccountDc: string ) => {
    return get( `/integral-service/integral/integralrecharge/info/${ pkAccountDc }` )
}
/**
 * 保存积分充值
 * @param params 
 * @returns 
 */
export const saveIntegralRecharge = ( params: IntegralRecharge ) => {
    return post( "/integral-service/integral/account/adminRecharge", params )
}
/**
 * 修改积分充值
 * @param params 
 * @returns 
 */
export const UpdateIntegralRecharge = ( params: IntegralRecharge ) => {
    return post( "/integral-service/integral/integralrecharge/update", params )
}
/**
 * 删除积分充值记录
 * @param params 
 * @returns 
 */
export const DeleteIntegralRecharge = ( params: Array<string> ) => {
    return post( "/integral-service/integral/integralrecharge/deleteBatch",params)
}